Auto merge of #2781 - alexcrichton:block-if-dirty, r=brson
authorbors <bors@rust-lang.org>
Sat, 11 Jun 2016 02:09:39 +0000 (19:09 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Jun 2016 02:09:39 +0000 (19:09 -0700)
commitffa147d393037fd5632cd8c9d048b5521d70ab4c
tree348684ed2c1a5ac9fd6f79c59aea341615debcb9
parentaec2473f257545a09674eeb24ec8b3cf400339fb
parent088d14ad3d7e613ff0ee5f51f7302026bae7d34d
Auto merge of #2781 - alexcrichton:block-if-dirty, r=brson

Prevent packaging a crate if any files are dirty

This commit alters Cargo's behavior to prevent publishing a crate by default if
any files in that crate are determined to be dirty, that is either modified or
not part of the working tree.

This can prevent common mistakes like many listed in #2063 and enables features like https://github.com/rust-lang/cargo/issues/841.

Closes https://github.com/rust-lang/cargo/issues/1597
Closes #2063